package com.modifiertech.lineage.client.gui.ftbint;

import java.io.Serializable;
import java.util.List;

public class SkillInfo implements Serializable {
    private double x,y;
    private double size;
    private boolean lock;
    private int levelDependency;
    private int skillRegion=0;
    private List<SkillInfo> skillsDependency;
    private String skillName="默认技能";
    private String skillDesc="public void initGui()\n" +
            "    {\n" +
            "        super.initGui();\n" +
            "        int offsetX = (this.width - this.xSize) / 2, offsetY = (this.height - this.ySize) / 2;\n" +
            "        this.buttonList.add(new GuiButton(BUTTON_UP, offsetX + 153, offsetY + 17, 15, 10, \"\")\n" +
            "        {\n" +
            "            @Override\n" +
            "            public void drawButton(Minecraft mc, int mouseX, int mouseY)\n" +
            "            {\n" +
            "                if (this.visible)\n" +
            "                {\n" +
            "                    GlStateManager.color(1.0F, 1.0F, 1.0F);\n" +
            "\n" +
            "                    mc.getTextureManager().bindTexture(TEXTURE);\n" +
            "                    int x = mouseX - this.xPosition, y = mouseY - this.yPosition;\n" +
            "\n" +
            "                    if (x >= 0 && y >= 0 && x < this.width && y < this.height)\n" +
            "                    {\n" +
            "                        this.drawTexturedModalRect(this.xPosition, this.yPosition, 1, 146, this.width, this.height);\n" +
            "                    }\n" +
            "                    else\n" +
            "                    {\n" +
            "                        this.drawTexturedModalRect(this.xPosition, this.yPosition, 1, 134, this.width, this.height);\n" +
            "                    }\n" +
            "                }\n" +
            "            }\n" +
            "        });\n" +
            "        this.buttonList.add(new GuiButton(BUTTON_DOWN, offsetX + 153, offsetY + 29, 15, 10, \"\")\n" +
            "        {\n" +
            "            @Override\n" +
            "            public void drawButton(Minecraft mc, int mouseX, int mouseY)\n" +
            "            {\n" +
            "                if (this.visible)\n" +
            "                {\n" +
            "                    GlStateManager.color(1.0F, 1.0F, 1.0F);\n" +
            "\n" +
            "                    mc.getTextureManager().bindTexture(TEXTURE);\n" +
            "                    int x = mouseX - this.xPosition, y = mouseY - this.yPosition;\n" +
            "\n" +
            "                    if (x >= 0 && y >= 0 && x < this.width && y < this.height)\n" +
            "                    {\n" +
            "                        this.drawTexturedModalRect(this.xPosition, this.yPosition, 20, 146, this.width, this.height);\n" +
            "                    }\n" +
            "                    else\n" +
            "                    {\n" +
            "                        this.drawTexturedModalRect(this.xPosition, this.yPosition, 20, 134, this.width, this.height);\n" +
            "                    }\n" +
            "                }\n" +
            "            }\n" +
            "        });\n" +
            "    }\n" +
            "\n" +
            "    @Override\n" +
            "    protected void actionPerformed(GuiButton button) throws IOException\n" +
            "    {\n" +
            "        ItemStack stack = this.ironSlot.getStack();\n" +
            "        int amount = stack == null ? 0 : stack.stackSize;\n" +
            "\n" +
            "        switch (button.id)\n" +
            "        {\n" +
            "        case BUTTON_DOWN:\n" +
            "            amount = (amount + 64) % 65;\n" +
            "            break;\n" +
            "        case BUTTON_UP:\n" +
            "            amount = (amount + 1) % 65;\n" +
            "            break;\n" +
            "        default:\n" +
            "            super.actionPerformed(button);\n" +
            "            return;\n" +
            "        }\n" +
            "\n" +
            "        this.ironSlot.putStack(amount == 0 ? null : new ItemStack(Items.iron_ingot, amount));\n" +
            "    }\n" +
            "\n" +
            "    @Override\n" +
            "    protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)\n" +
            "    {\n" +
            "        GlStateManager.color(1.0F, 1.0F, 1.0F);\n" +
            "\n" +
            "        this.mc.getTextureManager().bindTexture(TEXTURE);\n" +
            "        int offsetX = (this.width - this.xSize) / 2, offsetY = (this.height - this.ySize) / 2;\n" +
            "\n" +
            "        this.drawTexturedModalRect(offsetX, offsetY, 0, 0, this.xSize, this.ySize);\n" +
            "    }\n" +
            "\n" +
            "    @Override\n" +
            "    protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)\n" +
            "    {\n" +
            "        this.drawVerticalLine(30, 19, 36, 0xFF000000);\n" +
            "        this.drawHorizontalLine(8, 167, 43, 0xFF000000);\n" +
            "\n" +
            "        String title = I18n.format(\"container.fmltutor.demo\");\n" +
            "        this.fontRendererObj.drawString(title, (this.xSize - this.fontRendererObj.getStringWidth(title)) / 2, 6, 0x404040);\n" +
            "\n" +
            "        ItemStack item = new ItemStack(ItemLoader.goldenEgg);\n" +
            "        this.itemRender.renderItemAndEffectIntoGUI(item, 8, 20);\n" +
            "    }\n" +
            "}";
    private int currentLevel=5;

    public String getSkillName() {
        return skillName;
    }

    public void setSkillName(String skillName) {
        this.skillName = skillName;
    }

    public String getSkillDesc() {
        return skillDesc;
    }

    public void setSkillDesc(String skillDesc) {
        this.skillDesc = skillDesc;
    }

    public int getCurrentLevel() {
        return currentLevel;
    }

    public void setCurrentLevel(int currentLevel) {
        this.currentLevel = currentLevel;
    }

    public double getSize() {
        return size;
    }

    public void setSize(double size) {
        this.size = size;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }

    public int getSkillRegion() {
        return skillRegion;
    }

    public void setSkillRegion(int skillRegion) {
        this.skillRegion = skillRegion;
    }
}
